package com.choupin.choupin.utils;

import org.springframework.util.DigestUtils;

public class MD5AndSalt {

    public static  String getMD5Password(String password,String salt){
        for (int i=0;i<3;i++){
            password= DigestUtils.md5DigestAsHex((salt+password+salt).getBytes());
        }
        return password;//返回加密后的密码
    }



}
